import xml.etree.ElementTree as ET # XML support

def import_monster_chances():
	tree = ET.parse('monster_chances.xml')
	root = tree.getroot()
	chances_dictionary = {}
	monster_chance_dictionaries = {}
	level = 1
	for child in root:
		for tuple in child.items():
			monster = tuple[0]
			chance = tuple[1]
			chances_dictionary[monster] = chance
		monster_chance_dictionaries[level] = chances_dictionary
		print("Level " + str(level) + " monster chances imported: ")
		print monster_chance_dictionaries[level]
		level += 2